daytime = input("请输入今天的日期：")
weather = input("请输入今天的天气：")
mood = input("请输入今天的心情：")
with open("my_diary.txt","w",encoding = "utf-8") as f:
    content = f.write(f"{daytime}\t{weather}\t{mood}")

f = open("my_diary.txt","r",encoding = "utf-8")
res = f.read()
print(res)
f.close()